home *** CD-ROM | disk | FTP | other *** search
/ Star Festival... a Return to Japan / Star Festival... a Return to Japan.iso / pc / STARFESTIVAL / Opening.dir / 00001.ls next >
Encoding:
Text File  |  1999-09-21  |  1.6 KB  |  64 lines

  1. on startMovie
  2.   global qtChan, gsoundflip, gLoadFrame, gTemp, gCursorReady, gMagCursor, gCursVis
  3.   append(the searchPath, the pathName & "Sfaudio")
  4.   sharedStartMovie()
  5.   preloadMember(member(146, "shared"), member(148, "shared"))
  6.   gCursorReady = 1
  7.   gMagCursor = "magCursor"
  8.   gCursVis = 1
  9.   gLoadFrame = 114
  10.   gTemp = 0
  11.   gsoundflip = 0
  12.   sprite(7).volume = 256
  13.   qtChan = 5
  14.   preLoad(cast(qtChan))
  15.   puppetSprite(46, 1)
  16.   sprite(10).visible = 1
  17. end
  18.  
  19. on SkipIntro
  20.   if the keyCode = 36 then
  21.     siterand = random(20)
  22.     if siterand < 10 then
  23.       go(1, "0" & string(siterand) & "r")
  24.     else
  25.       go(1, string(siterand) & "r")
  26.     end if
  27.     set the keyDownScript to EMPTY
  28.     exit
  29.   end if
  30. end
  31.  
  32. on idle
  33.   global gCursorReady
  34.   if gCursorReady = 1 then
  35.     cursor(200)
  36.     checkCursors()
  37.     set the locH of sprite 46 to the mouseH
  38.     set the locV of sprite 46 to the mouseV
  39.     updateStage()
  40.   end if
  41. end
  42.  
  43. on checkCursors
  44.   global gMagCursor, gCursVis, gsoundflip
  45.   if gCursVis = 0 then
  46.     set the castNum of sprite 46 to the number of member "curs1"
  47.   else
  48.     set the castNum of sprite 46 to the number of member "nonCursor"
  49.   end if
  50.   if the castNum of sprite 6 and rollOver(6) then
  51.     set the castNum of sprite 46 to the number of member "hotCursor"
  52.   end if
  53.   if the castNum of sprite 15 and rollOver(15) then
  54.     set the castNum of sprite 46 to the number of member "nonCursor"
  55.   end if
  56.   if the castNum of sprite 10 and rollOver(10) and (gsoundflip = 1) then
  57.     set the castNum of sprite 46 to the number of member "hotCursor"
  58.   end if
  59. end
  60.  
  61. on stopMovie
  62.   sharedStopMovie()
  63. end
  64.